package com.abel.quiz.services;/**
 * Created by abel.lin on 2017/2/7.
 */

import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @author abel.lin
 * @date_time 2017/2/7 14:44
 * @description
 */
public interface BaseService<T,C> {

    int countByExample(C example);

    int deleteByPrimaryKey(String id);

    int insert(T record);

    int insertSelective(T record);

    T selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(T record);

    int updateByPrimaryKey(T record);

    int deleteByExample(C example);

    List<T> selectByExample(C example);

    int updateByExampleSelective(T record, C example);

    int updateByExample(T record, C example);

    PageInfo selectPageByExample(C example, int pgeNO, int pageSize);

}
